home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / Script.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  50.6 KB  |  1,287 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Script.a
  3. ;
  4. ;    Contains:    Script Manager interfaces
  5. ;
  6. ;    Version:    Technology:    System 7.5+
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1986-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__SCRIPT__') = 'UNDEFINED' THEN
  18. __SCRIPT__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  24.     include 'Quickdraw.a'
  25.     ENDIF
  26.     IF &TYPE('__INTLRESOURCES__') = 'UNDEFINED' THEN
  27.     include 'IntlResources.a'
  28.     ENDIF
  29.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  30.     include 'Events.a'
  31.     ENDIF
  32.  
  33. ;  Meta script codes:
  34.  
  35. smSystemScript                    EQU        -1                    ; designates system script.
  36. smCurrentScript                    EQU        -2                    ; designates current font script.
  37. smAllScripts                    EQU        -3                    ; designates any script
  38.  
  39. ;   Script codes:
  40. ;   These specify a Mac OS encoding that is related to a FOND ID range.
  41. ;   Some of the encodings have several variants (e.g. for different localized systems)
  42. ;    which all share the same script code.
  43. ;   Not all of these script codes are currently supported by Apple software.
  44. ;   Notes:
  45. ;   - Script code 0 (smRoman) is also used (instead of smGreek) for the Greek encoding
  46. ;     in the Greek localized system.
  47. ;   - Script code 28 (smEthiopic) is also used for the Inuit encoding in the Inuktitut
  48. ;     system.
  49.  
  50.  
  51.  
  52. smRoman                            EQU        0
  53. smJapanese                        EQU        1
  54. smTradChinese                    EQU        2                    ; Traditional Chinese
  55. smKorean                        EQU        3
  56. smArabic                        EQU        4
  57. smHebrew                        EQU        5
  58. smGreek                            EQU        6
  59. smCyrillic                        EQU        7
  60. smRSymbol                        EQU        8                    ; Right-left symbol
  61. smDevanagari                    EQU        9
  62. smGurmukhi                        EQU        10
  63. smGujarati                        EQU        11
  64. smOriya                            EQU        12
  65. smBengali                        EQU        13
  66. smTamil                            EQU        14
  67. smTelugu                        EQU        15
  68. smKannada                        EQU        16                    ; Kannada/Kanarese
  69. smMalayalam                        EQU        17
  70. smSinhalese                        EQU        18
  71. smBurmese                        EQU        19
  72. smKhmer                            EQU        20                    ; Khmer/Cambodian
  73. smThai                            EQU        21
  74. smLao                            EQU        22
  75. smGeorgian                        EQU        23
  76. smArmenian                        EQU        24
  77. smSimpChinese                    EQU        25                    ; Simplified Chinese
  78. smTibetan                        EQU        26
  79. smMongolian                        EQU        27
  80. smEthiopic                        EQU        28
  81. smGeez                            EQU        28                    ; Synonym for smEthiopic
  82. smCentralEuroRoman                EQU        29                    ; For Czech, Slovak, Polish, Hungarian, Baltic langs
  83. smVietnamese                    EQU        30
  84. smExtArabic                        EQU        31                    ; extended Arabic
  85. smUninterp                        EQU        32                    ; uninterpreted symbols, e.g. palette symbols
  86. ;  Obsolete script code names (kept for backward compatibility):
  87.  
  88. smChinese                        EQU        2                    ; (Use smTradChinese or smSimpChinese)
  89. smRussian                        EQU        7                    ; Use smCyrillic
  90.                                                             ; smMaldivian = 25: deleted, no code for Maldivian
  91. smLaotian                        EQU        22                    ; Use smLao                                                            
  92. smAmharic                        EQU        28                    ; Use smEthiopic or smGeez
  93. smSlavic                        EQU        29                    ; Use smCentralEuroRoman
  94. smEastEurRoman                    EQU        29                    ; Use smCentralEuroRoman
  95. smSindhi                        EQU        31                    ; Use smExtArabic
  96. smKlingon                        EQU        32
  97.  
  98. ;   Language codes:
  99. ;   These specify a language implemented using a particular Mac OS encoding.
  100. ;   Not all of these language codes are currently supported by Apple software.
  101.  
  102.  
  103.  
  104. langEnglish                        EQU        0                    ; smRoman script
  105. langFrench                        EQU        1                    ; smRoman script
  106. langGerman                        EQU        2                    ; smRoman script
  107. langItalian                        EQU        3                    ; smRoman script
  108. langDutch                        EQU        4                    ; smRoman script
  109. langSwedish                        EQU        5                    ; smRoman script
  110. langSpanish                        EQU        6                    ; smRoman script
  111. langDanish                        EQU        7                    ; smRoman script
  112. langPortuguese                    EQU        8                    ; smRoman script
  113. langNorwegian                    EQU        9                    ; smRoman script
  114. langHebrew                        EQU        10                    ; smHebrew script
  115. langJapanese                    EQU        11                    ; smJapanese script
  116. langArabic                        EQU        12                    ; smArabic script
  117. langFinnish                        EQU        13                    ; smRoman script
  118. langGreek                        EQU        14                    ; Greek script using smRoman script code
  119. langIcelandic                    EQU        15                    ; modified smRoman/Icelandic script
  120. langMaltese                        EQU        16                    ; Roman script
  121. langTurkish                        EQU        17                    ; modified smRoman/Turkish script
  122. langCroatian                    EQU        18                    ; modified smRoman/Croatian script
  123. langTradChinese                    EQU        19                    ; Chinese (Mandarin) in traditional characters
  124. langUrdu                        EQU        20                    ; smArabic script
  125. langHindi                        EQU        21                    ; smDevanagari script
  126. langThai                        EQU        22                    ; smThai script
  127. langKorean                        EQU        23                    ; smKorean script
  128.  
  129. langLithuanian                    EQU        24                    ; smCentralEuroRoman script
  130. langPolish                        EQU        25                    ; smCentralEuroRoman script
  131. langHungarian                    EQU        26                    ; smCentralEuroRoman script
  132. langEstonian                    EQU        27                    ; smCentralEuroRoman script
  133. langLatvian                        EQU        28                    ; smCentralEuroRoman script
  134. langSami                        EQU        29                    ; language of the Sami people of N. Scandinavia                        
  135. langFaroese                        EQU        30                    ; modified smRoman/Icelandic script                                    
  136. langFarsi                        EQU        31                    ; modified smArabic/Farsi script
  137. langPersian                        EQU        31                    ; Synonym for langFarsi
  138. langRussian                        EQU        32                    ; smCyrillic script
  139. langSimpChinese                    EQU        33                    ; Chinese (Mandarin) in simplified characters
  140. langFlemish                        EQU        34                    ; smRoman script
  141. langIrishGaelic                    EQU        35                    ; smRoman or modified smRoman/Celtic script (without dot above)        
  142. langAlbanian                    EQU        36                    ; smRoman script
  143. langRomanian                    EQU        37                    ; modified smRoman/Romanian script
  144. langCzech                        EQU        38                    ; smCentralEuroRoman script
  145. langSlovak                        EQU        39                    ; smCentralEuroRoman script
  146. langSlovenian                    EQU        40                    ; modified smRoman/Croatian script
  147. langYiddish                        EQU        41                    ; smHebrew script
  148. langSerbian                        EQU        42                    ; smCyrillic script
  149. langMacedonian                    EQU        43                    ; smCyrillic script
  150. langBulgarian                    EQU        44                    ; smCyrillic script
  151. langUkrainian                    EQU        45                    ; modified smCyrillic/Ukrainian script
  152. langByelorussian                EQU        46                    ; smCyrillic script
  153. langBelorussian                    EQU        46                    ; Synonym for langByelorussian                                            
  154.  
  155. langUzbek                        EQU        47                    ; Cyrillic script
  156. langKazakh                        EQU        48                    ; Cyrillic script
  157. langAzerbaijani                    EQU        49                    ; Azerbaijani in Cyrillic script
  158. langAzerbaijanAr                EQU        50                    ; Azerbaijani in Arabic script
  159. langArmenian                    EQU        51                    ; smArmenian script
  160. langGeorgian                    EQU        52                    ; smGeorgian script
  161. langMoldavian                    EQU        53                    ; smCyrillic script
  162. langKirghiz                        EQU        54                    ; Cyrillic script
  163. langTajiki                        EQU        55                    ; Cyrillic script
  164. langTurkmen                        EQU        56                    ; Cyrillic script
  165. langMongolian                    EQU        57                    ; Mongolian in smMongolian script
  166. langMongolianCyr                EQU        58                    ; Mongolian in Cyrillic script
  167. langPashto                        EQU        59                    ; Arabic script
  168. langKurdish                        EQU        60                    ; smArabic script
  169. langKashmiri                    EQU        61                    ; Arabic script
  170. langSindhi                        EQU        62                    ; Arabic script
  171. langTibetan                        EQU        63                    ; smTibetan script
  172. langNepali                        EQU        64                    ; smDevanagari script
  173. langSanskrit                    EQU        65                    ; smDevanagari script
  174. langMarathi                        EQU        66                    ; smDevanagari script
  175. langBengali                        EQU        67                    ; smBengali script
  176. langAssamese                    EQU        68                    ; smBengali script
  177. langGujarati                    EQU        69                    ; smGujarati script
  178. langPunjabi                        EQU        70                    ; smGurmukhi script
  179.  
  180. langOriya                        EQU        71                    ; smOriya script
  181. langMalayalam                    EQU        72                    ; smMalayalam script
  182. langKannada                        EQU        73                    ; smKannada script
  183. langTamil                        EQU        74                    ; smTamil script
  184. langTelugu                        EQU        75                    ; smTelugu script
  185. langSinhalese                    EQU        76                    ; smSinhalese script
  186. langBurmese                        EQU        77                    ; smBurmese script
  187. langKhmer                        EQU        78                    ; smKhmer script
  188. langLao                            EQU        79                    ; smLao script
  189. langVietnamese                    EQU        80                    ; smVietnamese script
  190. langIndonesian                    EQU        81                    ; smRoman script
  191. langTagalog                        EQU        82                    ; Roman script
  192. langMalayRoman                    EQU        83                    ; Malay in smRoman script
  193. langMalayArabic                    EQU        84                    ; Malay in Arabic script
  194. langAmharic                        EQU        85                    ; smEthiopic script
  195. langTigrinya                    EQU        86                    ; smEthiopic script
  196. langOromo                        EQU        87                    ; smEthiopic script
  197. langSomali                        EQU        88                    ; smRoman script
  198. langSwahili                        EQU        89                    ; smRoman script
  199. langKinyarwanda                    EQU        90                    ; smRoman script
  200. langRuanda                        EQU        90                    ; synonym for langKinyarwanda
  201. langRundi                        EQU        91                    ; smRoman script
  202. langNyanja                        EQU        92                    ; smRoman script
  203. langChewa                        EQU        92                    ; synonym for langNyanja
  204. langMalagasy                    EQU        93                    ; smRoman script
  205. langEsperanto                    EQU        94                    ; Roman script
  206.  
  207. langWelsh                        EQU        128                    ; modified smRoman/Celtic script
  208. langBasque                        EQU        129                    ; smRoman script
  209. langCatalan                        EQU        130                    ; smRoman script
  210. langLatin                        EQU        131                    ; smRoman script
  211. langQuechua                        EQU        132                    ; smRoman script
  212. langGuarani                        EQU        133                    ; smRoman script
  213. langAymara                        EQU        134                    ; smRoman script
  214. langTatar                        EQU        135                    ; Cyrillic script
  215. langUighur                        EQU        136                    ; Arabic script
  216. langDzongkha                    EQU        137                    ; (lang of Bhutan) smTibetan script
  217. langJavaneseRom                    EQU        138                    ; Javanese in smRoman script
  218. langSundaneseRom                EQU        139                    ; Sundanese in smRoman script
  219. langGalician                    EQU        140                    ; smRoman script
  220. langAfrikaans                    EQU        141                    ; smRoman script                                                        
  221.  
  222. langBreton                        EQU        142                    ; smRoman or modified smRoman/Celtic script                            
  223. langInuktitut                    EQU        143                    ; Inuit script using smEthiopic script code                            
  224. langScottishGaelic                EQU        144                    ; smRoman or modified smRoman/Celtic script                            
  225. langManxGaelic                    EQU        145                    ; smRoman or modified smRoman/Celtic script                            
  226. langIrishGaelicScript            EQU        146                    ; modified smRoman/Gaelic script (using dot above)                        
  227. langTongan                        EQU        147                    ; smRoman script                                                        
  228. langGreekPoly                    EQU        148                    ; smGreek script                                                        
  229. langGreenlandic                    EQU        149                    ; smRoman script                                                        
  230.  
  231. langUnspecified                    EQU        32767                ; Special code for use in resources (such as 'itlm')                    
  232.  
  233. ;   Obsolete language code names (kept for backward compatibility):
  234. ;   Misspelled, ambiguous, misleading, considered pejorative, archaic, etc.
  235.  
  236.  
  237.  
  238. langPortugese                    EQU        8                    ; Use langPortuguese
  239. langMalta                        EQU        16                    ; Use langMaltese
  240. langYugoslavian                    EQU        18                    ; (use langCroatian, langSerbian, etc.)
  241. langChinese                        EQU        19                    ; (use langTradChinese or langSimpChinese)
  242. langLettish                        EQU        28                    ; Use langLatvian                                                        
  243. langLapponian                    EQU        29                    ; Use langSami
  244. langLappish                        EQU        29                    ; Use langSami
  245. langSaamisk                        EQU        29                    ; Use langSami                                                            
  246. langFaeroese                    EQU        30                    ; Use langFaroese                                                        
  247. langIrish                        EQU        35                    ; Use langIrishGaelic                                                    
  248. langGalla                        EQU        87                    ; Use langOromo                                                        
  249. langAfricaans                    EQU        141                    ; Use langAfrikaans                                                    
  250.  
  251. ;   Region codes:
  252. ;   These typically specify a combination of a language code and a particular region.
  253. ;   Some of these numeric values are reserved just for extra resource IDs associated
  254. ;   with certain regions; these are not actual region codes, and are noted in the comments.
  255. ;   Not all of the region codes are currently supported by Apple software.
  256. ;   When relevant, the following list also provides:
  257. ;   - The Apple part number (P/N) code for software localized for the specified region.
  258. ;   - The two-letter ISO language and country codes (from ISO 639 and ISO 3166). The
  259. ;     language code (lowercase) is first, then '_', then the country code (uppercase).
  260.  
  261.  
  262.  
  263.  
  264.                                                             ; P/N    ISO    codes    comments
  265. verUS                            EQU        0                    ;        en_US
  266. verFrance                        EQU        1                    ; F    fr_FR
  267. verBritain                        EQU        2                    ; B    en_GB
  268. verGermany                        EQU        3                    ; D    de_DE
  269. verItaly                        EQU        4                    ; T    it_IT
  270. verNetherlands                    EQU        5                    ; N    nl_NL
  271. verFlemish                        EQU        6                    ; FN    nl_BE        Flemish (Dutch) for Belgium                            
  272. verSweden                        EQU        7                    ; S    sv_SE
  273. verSpain                        EQU        8                    ; E    es_ES        Spanish for Spain
  274. verDenmark                        EQU        9                    ; DK    da_DK
  275. verPortugal                        EQU        10                    ; PO    pt_PT        Portuguese for Portugal
  276. verFrCanada                        EQU        11                    ; C    fr_CA        French for Canada
  277. verNorway                        EQU        12                    ; H    no_NO        Bokmål
  278. verIsrael                        EQU        13                    ; HB    iw_IL        Hebrew
  279. verJapan                        EQU        14                    ; J    ja_JP
  280. verAustralia                    EQU        15                    ; X    en_AU        English for Australia
  281. verArabic                        EQU        16                    ; AB    ar            Arabic for N Africa, Arabian peninsula, Levant
  282. verFinland                        EQU        17                    ; K    fi_FI
  283. verFrSwiss                        EQU        18                    ; SF    fr_CH        French Swiss
  284. verGrSwiss                        EQU        19                    ; SD    de_CH        German Swiss
  285. verGreece                        EQU        20                    ; GR    el_GR        Monotonic Greek (modern)
  286. verIceland                        EQU        21                    ; IS    is_IS
  287. verMalta                        EQU        22                    ; MA    mt_MT
  288. verCyprus                        EQU        23                    ; CY      _CY        Greek or Turkish language? Checking...
  289. verTurkey                        EQU        24                    ; TU    tr_TR
  290. verYugoCroatian                    EQU        25                    ; YU                Croatian for Yugoslavia; now use verCroatia (68)
  291.  
  292. verNetherlandsComma                EQU        26                    ;                    ID for KCHR resource - Dutch
  293. verBelgiumLuxPoint                EQU        27                    ;                    ID for KCHR resource - Belgium
  294. verCanadaComma                    EQU        28                    ;                    ID for KCHR resource - Canadian ISO
  295. verCanadaPoint                    EQU        29                    ;                    ID for KCHR resource - Canadian; now unused
  296. vervariantPortugal                EQU        30                    ;                    ID for resource; now unused
  297. vervariantNorway                EQU        31                    ;                    ID for resource; now unused
  298. vervariantDenmark                EQU        32                    ;                    ID for KCHR resource - Danish Mac Plus
  299.  
  300. verIndiaHindi                    EQU        33                    ;        hi_IN        Hindi for India
  301. verPakistanUrdu                    EQU        34                    ; UR    ur_PK        Urdu for Pakistan                                    
  302. verTurkishModified                EQU        35
  303. verItalianSwiss                    EQU        36                    ; ST    it_CH        Italian Swiss
  304. verInternational                EQU        37                    ; Z    en            English for international use                        
  305.                                                             ;                    38 is unassigned
  306. verRomania                        EQU        39                    ; RO    ro_RO
  307. verGreecePoly                    EQU        40                    ;                    Polytonic Greek (classical)                            
  308. verLithuania                    EQU        41                    ; LT    lt_LT
  309. verPoland                        EQU        42                    ; PL    pl_PL
  310. verHungary                        EQU        43                    ; MG    hu_HU
  311. verEstonia                        EQU        44                    ; EE    et_EE
  312. verLatvia                        EQU        45                    ; LV    lv_LV
  313. verSami                            EQU        46                    ;        se                                                                
  314. verFaroeIsl                        EQU        47                    ; FA    fo_FO                                                            
  315. verIran                            EQU        48                    ; PS    fa_IR        Persian/Farsi
  316. verRussia                        EQU        49                    ; RS    ru_RU        Russian
  317. verIreland                        EQU        50                    ; GA    ga_IE        Irish Gaelic for Ireland (without dot above)        
  318. verKorea                        EQU        51                    ; KH    ko_KR
  319. verChina                        EQU        52                    ; CH    zh_CN        Simplified Chinese
  320. verTaiwan                        EQU        53                    ; TA    zh_TW        Traditional Chinese
  321. verThailand                        EQU        54                    ; TH    th_TH
  322. verScriptGeneric                EQU        55                    ; SS                Generic script system (no language or script)        
  323. verCzech                        EQU        56                    ; CZ    cs_CZ
  324. verSlovak                        EQU        57                    ; SL    sk_SK
  325. verFarEastGeneric                EQU        58                    ; FE                Generic Far East system (no language or script)        
  326. verMagyar                        EQU        59                    ;                    Unused; see verHungary
  327. verBengali                        EQU        60                    ;        bn            Bangladesh or India
  328. verByeloRussian                    EQU        61                    ; BY    be_BY
  329.  
  330. verUkraine                        EQU        62                    ; UA    uk_UA
  331.                                                             ;                    63 is unassigned
  332. verGreeceAlt                    EQU        64                    ;                    unused                                                
  333. verSerbian                        EQU        65                    ; SR    sr_YU, sh_YU                                                    
  334. verSlovenian                    EQU        66                    ; SV    sl_SI                                                            
  335. verMacedonian                    EQU        67                    ; MD    mk_MK                                                            
  336. verCroatia                        EQU        68                    ; CR    hr_HR, sh_HR
  337.                                                             ;                    69 is unassigned
  338.                                                             ;                    70 is unassigned
  339. verBrazil                        EQU        71                    ; BR    pt_BR        Portuguese for Brazil
  340. verBulgaria                        EQU        72                    ; BG    bg_BG
  341. verCatalonia                    EQU        73                    ; CA    ca_ES        Catalan for Spain
  342. verMultilingual                    EQU        74                    ; ZM                (no language or script)
  343. verScottishGaelic                EQU        75                    ; GD    gd
  344. verManxGaelic                    EQU        76                    ; GV    gv            Isle of Man
  345. verBreton                        EQU        77                    ; BZ    br
  346. verNunavut                        EQU        78                    ; IU    iu_CA        Inuktitut for Canada
  347. verWelsh                        EQU        79                    ; CU    cy
  348.                                                             ;                    80 is ID for KCHR resource - Canadian CSA
  349. verIrishGaelicScript            EQU        81                    ; GS    ga_IE        Irish Gaelic for Ireland (using dot above)
  350. verEngCanada                    EQU        82                    ; V    en_CA        English for Canada
  351. verBhutan                        EQU        83                    ; BH    dz_BT        Dzongkha for Bhutan
  352. verArmenian                        EQU        84                    ; HY    hy_AM
  353. verGeorgian                        EQU        85                    ; KR    ka_GE
  354. verSpLatinAmerica                EQU        86                    ; LA    es            Spanish for Latin America
  355.                                                             ;                    87 is ID for KCHR resource - Spanish ISO
  356. verTonga                        EQU        88                    ; TS    to_TO
  357.                                                             ;                    89 is ID for KCHR resource - Polish Modified
  358.                                                             ;                    90 is ID for KCHR resource - Catalan ISO
  359. verFrenchUniversal                EQU        91                    ;        fr            French generic
  360. verAustria                        EQU        92                    ; AU    de_AT        German for Austria
  361.                                                             ; Y                93 is unused alternate for verSpLatinAmerica
  362. verGujarati                        EQU        94                    ;        gu_IN
  363. verPunjabi                        EQU        95                    ;        pa            Pakistan or India
  364. verIndiaUrdu                    EQU        96                    ;        ur_IN        Urdu for India
  365. verVietnam                        EQU        97                    ;        vi_VN
  366.  
  367. verFrBelgium                    EQU        98                    ; BF    fr_BE        French for Belgium                                    
  368. verUzbek                        EQU        99                    ; BD    uz_UZ                                                            
  369. verSingapore                    EQU        100                    ; SG                                                                    
  370. verNynorsk                        EQU        101                    ; NY      _NO        Norwegian Nynorsk                                    
  371. verAfrikaans                    EQU        102                    ; AK    af_ZA                                                            
  372. verEsperanto                    EQU        103                    ;        eo                                                                
  373. verMarathi                        EQU        104                    ;        mr_IN                                                            
  374. verTibetan                        EQU        105                    ;        bo                                                                
  375. verNepal                        EQU        106                    ;        ne_NP                                                            
  376. verGreenland                    EQU        107                    ;        kl                                                                
  377.  
  378. ;   Other extra resource IDs assigned in the same number space:
  379. ;    179 is ID for KCHR & itl_ resources - Cornish
  380. ;    581 is ID for KCHR resource - Irish Gaelic script alternate
  381. ;    582 is ID for KCHR resource - Ogham
  382. ;    779 is ID for KCHR resource - Welsh alternate
  383. ;   1111 is ID for KCHR resource - French numeric
  384.  
  385.  
  386.  
  387.  
  388. ;   Obsolete region code names (kept for backward compatibility):
  389. ;   Misspelled or alternate form, ambiguous, misleading, considered pejorative, archaic, etc.
  390.  
  391.  
  392.  
  393. verFrBelgiumLux                    EQU        6                    ; Incorrect; 6 is Flemish, not French, for Belgium; use verFlemish        
  394. verBelgiumLux                    EQU        6                    ; Use verFlemish
  395. verArabia                        EQU        16                    ; Use verArabic
  396. verYugoslavia                    EQU        25                    ; Use verYugoCroatian (same number, now unused), or newer verCroatia
  397. verIndia                        EQU        33                    ; Use verIndiaHindi
  398. verPakistan                        EQU        34                    ; Use verPakistanUrdu                                                    
  399. verRumania                        EQU        39                    ; Alternate for verRomania                                                
  400. verGreekAncient                    EQU        40                    ; Use verGreecePoly                                                    
  401. verLapland                        EQU        46                    ; Use verSami                                                            
  402. verFaeroeIsl                    EQU        47                    ; Use verFaroeIsl                                                        
  403. verGenericFE                    EQU        58                    ; Use verFarEastGeneric                                                
  404. verBelarus                        EQU        61                    ; Alternate for verByelorussian                                        
  405. verUkrania                        EQU        62                    ; Use verUkraine
  406. verAlternateGr                    EQU        64                    ; Use verGreeceAlt                                                        
  407. verSerbia                        EQU        65                    ; Alternate for verSerbian                                                
  408. verSlovenia                        EQU        66                    ; Alternate for verSlovenian                                            
  409. verMacedonia                    EQU        67                    ; Alternate for verMacedonian                                            
  410. verBrittany                        EQU        77                    ; Alternate for verBreton                                                
  411. verWales                        EQU        79                    ; Alternate for verWelsh                                                
  412. verArmenia                        EQU        84                    ; Alternate for verArmenian                                            
  413. verGeorgia                        EQU        85                    ; Alternate for verGeorgian                                            
  414. verAustriaGerman                EQU        92                    ; Use verAustria                                                        
  415. verTibet                        EQU        105                    ; Use verTibetan                                                        
  416.  
  417. minCountry                        EQU        0
  418. maxCountry                        EQU        107
  419.  
  420.                                                             ; Calendar Codes 
  421. calGregorian                    EQU        0
  422. calArabicCivil                    EQU        1
  423. calArabicLunar                    EQU        2
  424. calJapanese                        EQU        3
  425. calJewish                        EQU        4
  426. calCoptic                        EQU        5
  427. calPersian                        EQU        6
  428.  
  429.                                                             ; Integer Format Codes 
  430. intWestern                        EQU        0
  431. intArabic                        EQU        1
  432. intRoman                        EQU        2
  433. intJapanese                        EQU        3
  434. intEuropean                        EQU        4
  435. intOutputMask                    EQU        $8000
  436.  
  437.                                                             ; CharByte byte types 
  438. smSingleByte                    EQU        0
  439. smFirstByte                        EQU        -1
  440. smLastByte                        EQU        1
  441. smMiddleByte                    EQU        2
  442.  
  443.                                                             ; CharType field masks 
  444. smcTypeMask                        EQU        $000F
  445. smcReserved                        EQU        $00F0
  446. smcClassMask                    EQU        $0F00
  447. smcOrientationMask                EQU        $1000                ;two-byte script glyph orientation
  448. smcRightMask                    EQU        $2000
  449. smcUpperMask                    EQU        $4000
  450. smcDoubleMask                    EQU        $8000
  451.  
  452.                                                             ; Basic CharType character types 
  453. smCharPunct                        EQU        $0000
  454. smCharAscii                        EQU        $0001
  455. smCharEuro                        EQU        $0007
  456. smCharExtAscii                    EQU        $0007                ; More correct synonym for smCharEuro 
  457.                                                             ; Additional CharType character types for script systems 
  458. smCharKatakana                    EQU        $0002                ;Japanese Katakana
  459. smCharHiragana                    EQU        $0003                ;Japanese Hiragana
  460. smCharIdeographic                EQU        $0004                ;Hanzi, Kanji, Hanja
  461. smCharTwoByteGreek                EQU        $0005                ;2-byte Greek in Far East systems
  462. smCharTwoByteRussian            EQU        $0006                ;2-byte Cyrillic in Far East systems
  463. smCharBidirect                    EQU        $0008                ;Arabic/Hebrew
  464. smCharContextualLR                EQU        $0009                ;Contextual left-right: Thai, Indic scripts
  465. smCharNonContextualLR            EQU        $000A                ;Non-contextual left-right: Cyrillic, Greek
  466. smCharHangul                    EQU        $000C                ;Korean Hangul
  467. smCharJamo                        EQU        $000D                ;Korean Jamo
  468. smCharBopomofo                    EQU        $000E                ;Chinese Bopomofo
  469. smCharGanaKana                    EQU        $000F                ;Shared for Japanese Hiragana & Katakana
  470.                                                             ; old names for some of above, for backward compatibility 
  471. smCharFISKana                    EQU        $0002                ;Katakana
  472. smCharFISGana                    EQU        $0003                ;Hiragana
  473. smCharFISIdeo                    EQU        $0004                ;Hanzi, Kanji, Hanja
  474.  
  475. smCharFISGreek                    EQU        $0005                ;2-byte Greek in Far East systems
  476. smCharFISRussian                EQU        $0006                ;2-byte Cyrillic in Far East systems
  477.                                                             ; CharType classes for punctuation (smCharPunct) 
  478. smPunctNormal                    EQU        $0000
  479. smPunctNumber                    EQU        $0100
  480. smPunctSymbol                    EQU        $0200
  481. smPunctBlank                    EQU        $0300                ; Additional CharType classes for punctuation in two-byte systems 
  482. smPunctRepeat                    EQU        $0400                ; repeat marker 
  483. smPunctGraphic                    EQU        $0500                ; line graphics 
  484.                                                             ; CharType Katakana and Hiragana classes for two-byte systems 
  485. smKanaSmall                        EQU        $0100                ;small kana character
  486. smKanaHardOK                    EQU        $0200                ;can have dakuten
  487. smKanaSoftOK                    EQU        $0300                ;can have dakuten or han-dakuten
  488.                                                             ; CharType Ideographic classes for two-byte systems 
  489. smIdeographicLevel1                EQU        $0000                ;level 1 char
  490. smIdeographicLevel2                EQU        $0100                ;level 2 char
  491. smIdeographicUser                EQU        $0200                ;user char
  492.                                                             ; old names for above, for backward compatibility 
  493. smFISClassLvl1                    EQU        $0000                ;level 1 char
  494. smFISClassLvl2                    EQU        $0100                ;level 2 char
  495. smFISClassUser                    EQU        $0200                ;user char
  496.                                                             ; CharType Jamo classes for Korean systems 
  497. smJamoJaeum                        EQU        $0000                ;simple consonant char
  498. smJamoBogJaeum                    EQU        $0100                ;complex consonant char
  499. smJamoMoeum                        EQU        $0200                ;simple vowel char
  500. smJamoBogMoeum                    EQU        $0300                ;complex vowel char
  501.  
  502.                                                             ; CharType glyph orientation for two-byte systems 
  503. smCharHorizontal                EQU        $0000                ; horizontal character form, or for both 
  504. smCharVertical                    EQU        $1000                ; vertical character form 
  505.                                                             ; CharType directions 
  506. smCharLeft                        EQU        $0000
  507. smCharRight                        EQU        $2000                ; CharType case modifers 
  508. smCharLower                        EQU        $0000
  509. smCharUpper                        EQU        $4000                ; CharType character size modifiers (1 or multiple bytes). 
  510. smChar1byte                        EQU        $0000
  511. smChar2byte                        EQU        $8000
  512.  
  513.                                                             ; TransliterateText target types for Roman 
  514. smTransAscii                    EQU        0                    ;convert to ASCII
  515. smTransNative                    EQU        1                    ;convert to font script
  516. smTransCase                        EQU        $FE                    ;convert case for all text
  517. smTransSystem                    EQU        $FF                    ;convert to system script
  518.                                                             ; TransliterateText target types for two-byte scripts 
  519. smTransAscii1                    EQU        2                    ;1-byte Roman
  520. smTransAscii2                    EQU        3                    ;2-byte Roman
  521. smTransKana1                    EQU        4                    ;1-byte Japanese Katakana
  522. smTransKana2                    EQU        5                    ;2-byte Japanese Katakana
  523.  
  524. smTransGana2                    EQU        7                    ;2-byte Japanese Hiragana (no 1-byte Hiragana)
  525. smTransHangul2                    EQU        8                    ;2-byte Korean Hangul
  526. smTransJamo2                    EQU        9                    ;2-byte Korean Jamo
  527. smTransBopomofo2                EQU        10                    ;2-byte Chinese Bopomofo
  528.                                                             ; TransliterateText target modifiers 
  529. smTransLower                    EQU        $4000                ;target becomes lowercase
  530. smTransUpper                    EQU        $8000                ;target becomes uppercase
  531.                                                             ; TransliterateText resource format numbers 
  532. smTransRuleBaseFormat            EQU        1                    ;Rule based trsl resource format 
  533. smTransHangulFormat                EQU        2                    ;Table based Hangul trsl resource format
  534.                                                             ; TransliterateText property flags 
  535. smTransPreDoubleByting            EQU        1                    ;Convert all text to double byte before transliteration
  536. smTransPreLowerCasing            EQU        2                    ;Convert all text to lower case before transliteration
  537.  
  538.                                                             ; TransliterateText source mask - general 
  539. smMaskAll                        EQU        $FFFFFFFF            ;Convert all text
  540.                                                             ; TransliterateText source masks 
  541. smMaskAscii                        EQU        $00000001            ;2^smTransAscii
  542. smMaskNative                    EQU        $00000002            ;2^smTransNative
  543.                                                             ; TransliterateText source masks for two-byte scripts 
  544. smMaskAscii1                    EQU        $00000004            ;2^smTransAscii1
  545. smMaskAscii2                    EQU        $00000008            ;2^smTransAscii2
  546. smMaskKana1                        EQU        $00000010            ;2^smTransKana1
  547. smMaskKana2                        EQU        $00000020            ;2^smTransKana2
  548. smMaskGana2                        EQU        $00000080            ;2^smTransGana2
  549. smMaskHangul2                    EQU        $00000100            ;2^smTransHangul2
  550. smMaskJamo2                        EQU        $00000200            ;2^smTransJamo2
  551. smMaskBopomofo2                    EQU        $00000400            ;2^smTransBopomofo2
  552.  
  553.                                                             ; Result values from GetScriptManagerVariable and SetScriptManagerVariable calls. 
  554. smNotInstalled                    EQU        0                    ;routine not available in script
  555. smBadVerb                        EQU        -1                    ;Bad verb passed to a routine
  556. smBadScript                        EQU        -2                    ;Bad script code passed to a routine
  557.  
  558.                                                             ; Values for script redraw flag. 
  559. smRedrawChar                    EQU        0                    ;Redraw character only
  560. smRedrawWord                    EQU        1                    ;Redraw entire word (2-byte systems)
  561. smRedrawLine                    EQU        -1                    ;Redraw entire line (bidirectional systems)
  562.  
  563.                                                             ; GetScriptManagerVariable and SetScriptManagerVariable verbs 
  564. smVersion                        EQU        0                    ;Script Manager version number
  565. smMunged                        EQU        2                    ;Globals change count
  566. smEnabled                        EQU        4                    ;Count of enabled scripts, incl Roman
  567. smBidirect                        EQU        6                    ;At least one bidirectional script
  568. smFontForce                        EQU        8                    ;Force font flag
  569. smIntlForce                        EQU        10                    ;Force intl flag
  570. smForced                        EQU        12                    ;Script was forced to system script
  571. smDefault                        EQU        14                    ;Script was defaulted to Roman script
  572. smPrint                            EQU        16                    ;Printer action routine
  573. smSysScript                        EQU        18                    ;System script
  574. smLastScript                    EQU        20                    ;Last keyboard script
  575. smKeyScript                        EQU        22                    ;Keyboard script
  576. smSysRef                        EQU        24                    ;System folder refNum
  577. smKeyCache                        EQU        26                    ;obsolete
  578. smKeySwap                        EQU        28                    ;Swapping table handle
  579. smGenFlags                        EQU        30                    ;General flags long
  580. smOverride                        EQU        32                    ;Script override flags
  581. smCharPortion                    EQU        34                    ;Ch vs SpExtra proportion
  582.                                                             ; New for System 7.0: 
  583. smDoubleByte                    EQU        36                    ;Flag for double-byte script installed
  584. smKCHRCache                        EQU        38                    ;Returns pointer to KCHR cache
  585. smRegionCode                    EQU        40                    ;Returns current region code (verXxx)
  586. smKeyDisableState                EQU        42                    ;Returns current keyboard disable state
  587.  
  588.                                                             ; GetScriptVariable and SetScriptVariable verbs. 
  589.                                                             ; Note: Verbs private to script systems are negative, while 
  590.                                                             ; those general across script systems are non-negative. 
  591. smScriptVersion                    EQU        0                    ;Script software version
  592. smScriptMunged                    EQU        2                    ;Script entry changed count
  593. smScriptEnabled                    EQU        4                    ;Script enabled flag
  594. smScriptRight                    EQU        6                    ;Right to left flag
  595. smScriptJust                    EQU        8                    ;Justification flag
  596. smScriptRedraw                    EQU        10                    ;Word redraw flag
  597. smScriptSysFond                    EQU        12                    ;Preferred system font
  598. smScriptAppFond                    EQU        14                    ;Preferred Application font
  599. smScriptBundle                    EQU        16                    ;Beginning of itlb verbs
  600. smScriptNumber                    EQU        16                    ;Script itl0 id
  601. smScriptDate                    EQU        18                    ;Script itl1 id
  602. smScriptSort                    EQU        20                    ;Script itl2 id
  603. smScriptFlags                    EQU        22                    ;flags word
  604. smScriptToken                    EQU        24                    ;Script itl4 id
  605. smScriptEncoding                EQU        26                    ;id of optional itl5, if present
  606. smScriptLang                    EQU        28                    ;Current language for script
  607.  
  608. smScriptNumDate                    EQU        30                    ;Script Number/Date formats.
  609. smScriptKeys                    EQU        32                    ;Script KCHR id
  610. smScriptIcon                    EQU        34                    ;ID # of SICN or kcs#/kcs4/kcs8 suite
  611. smScriptPrint                    EQU        36                    ;Script printer action routine
  612. smScriptTrap                    EQU        38                    ;Trap entry pointer
  613. smScriptCreator                    EQU        40                    ;Script file creator
  614. smScriptFile                    EQU        42                    ;Script file name
  615. smScriptName                    EQU        44                    ;Script name
  616.                                                             ; There is a hole here for old Kanji private verbs 46-76 
  617.                                                             ; New for System 7.0: 
  618. smScriptMonoFondSize            EQU        78                    ;default monospace FOND (hi) & size (lo)
  619. smScriptPrefFondSize            EQU        80                    ;preferred FOND (hi) & size (lo)
  620. smScriptSmallFondSize            EQU        82                    ;default small FOND (hi) & size (lo)
  621. smScriptSysFondSize                EQU        84                    ;default system FOND (hi) & size (lo)
  622. smScriptAppFondSize                EQU        86                    ;default app FOND (hi) & size (lo)
  623. smScriptHelpFondSize            EQU        88                    ;default Help Mgr FOND (hi) & size (lo)
  624. smScriptValidStyles                EQU        90                    ;mask of valid styles for script
  625. smScriptAliasStyle                EQU        92                    ;style (set) to use for aliases
  626. ;  special negative verbs for Get/SetScriptVariable that were associated with WorldScriptI 
  627. ;  move them here to be public 
  628.  
  629.                                                             ; WorldScript private verbs 
  630. smLayoutCache                    EQU        -309                ; HiWrd(param) is # entries, LoWrd is max input length
  631. smOldVerbSupport                EQU        -311                ; param is added to old verbs to map to WSI verb
  632. smSetKashidas                    EQU        -291                ; param is ON or OFF, old verb = -36
  633. smSetKashProp                    EQU        -287                ; param is kashida proportion, old verb = -32
  634. smScriptSysBase                    EQU        -281                ; param is associated font to use w/ system font (old verb = -26)
  635. smScriptAppBase                    EQU        -283                ; param is associated font to use w/ app font (old verb = -28)
  636. smScriptFntBase                    EQU        -285                ; param is associated font to use w/ all other fonts (old verb = -30)
  637. smScriptLigatures                EQU        -263                ; old verb = -8
  638. smScriptNumbers                    EQU        -267                ; old verb = -12
  639.  
  640.                                                             ; Special script code values for International Utilities 
  641. iuSystemScript                    EQU        -1                    ; <obsolete>  system script 
  642. iuCurrentScript                    EQU        -2                    ; <obsolete>  current script (for font of grafPort) 
  643.  
  644.                                                             ; Negative verbs for KeyScript 
  645. smKeyNextScript                    EQU        -1                    ; Switch to next available script 
  646. smKeySysScript                    EQU        -2                    ; Switch to the system script 
  647. smKeySwapScript                    EQU        -3                    ; Switch to previously-used script 
  648.                                                             ; New for System 7.0: 
  649. smKeyNextKybd                    EQU        -4                    ; Switch to next keyboard in current keyscript 
  650. smKeySwapKybd                    EQU        -5                    ; Switch to previously-used keyboard in current keyscript 
  651. smKeyDisableKybds                EQU        -6                    ; Disable keyboards not in system or Roman script 
  652. smKeyEnableKybds                EQU        -7                    ; Re-enable keyboards for all enabled scripts 
  653. smKeyToggleInline                EQU        -8                    ; Toggle inline input for current keyscript 
  654. smKeyToggleDirection            EQU        -9                    ; Toggle default line direction (TESysJust) 
  655. smKeyNextInputMethod            EQU        -10                    ; Switch to next input method in current keyscript 
  656. smKeySwapInputMethod            EQU        -11                    ; Switch to last-used input method in current keyscript 
  657. smKeyDisableKybdSwitch            EQU        -12                    ; Disable switching from the current keyboard 
  658. smKeySetDirLeftRight            EQU        -15                    ; Set default line dir to left-right, align left 
  659. smKeySetDirRightLeft            EQU        -16                    ; Set default line dir to right-left, align right 
  660. smKeyRoman                        EQU        -17                    ; Set keyscript to Roman. Does nothing if Roman-only system, unlike KeyScript(smRoman) which forces an update to current default Roman keyboard 
  661. ;  Optional font and keyboard script synchronization 
  662.  
  663.                                                             ; One more flag in the smGenFlags long. 
  664. smfDisableKeyScriptSync            EQU        27                    ;Disable font and keyboard script synchronization
  665.  
  666.                                                             ; We should define masks, too. 
  667. smfDisableKeyScriptSyncMask        EQU        $08000000            ;Disable font and keyboard script synchronization mask
  668.  
  669.                                                             ; Force keyboard script switching flag and mask for zero and positive KeyScript verbs 
  670. smKeyForceKeyScriptBit            EQU        7                    ; Force keyboard script switching flag 
  671. smKeyForceKeyScriptMask            EQU        $80                    ; its mask 
  672.  
  673.                                                             ; Bits in the smScriptFlags word 
  674.                                                             ;  (bits above 8 are non-static) 
  675. smsfIntellCP                    EQU        0                    ;Script has intelligent cut & paste
  676. smsfSingByte                    EQU        1                    ;Script has only single bytes
  677. smsfNatCase                        EQU        2                    ;Native chars have upper & lower case
  678. smsfContext                        EQU        3                    ;Script is contextual
  679. smsfNoForceFont                    EQU        4                    ;Script will not force characters
  680. smsfB0Digits                    EQU        5                    ;Script has alternate digits at B0-B9
  681. smsfAutoInit                    EQU        6                    ;Auto initialize the script
  682. smsfUnivExt                        EQU        7                    ;Script is handled by universal extension
  683. smsfSynchUnstyledTE                EQU        8                    ;Script synchronizes for unstyled TE
  684. smsfForms                        EQU        13                    ;Uses contextual forms for letters
  685. smsfLigatures                    EQU        14                    ;Uses contextual ligatures
  686. smsfReverse                        EQU        15                    ;Reverses native text, right-left
  687.                                                             ; Bits in the smGenFlags long. 
  688.                                                             ; First (high-order) byte is set from itlc flags byte. 
  689. smfShowIcon                        EQU        31                    ;Show icon even if only one script
  690. smfDualCaret                    EQU        30                    ;Use dual caret for mixed direction text
  691. smfNameTagEnab                    EQU        29                    ;Reserved for internal use
  692. smfUseAssocFontInfo                EQU        28                    ;Use the associated font info for FontMetrics calls <48>
  693.  
  694.                                                             ; Roman script constants 
  695.                                                             ; The following are here for backward compatibility, but should not be used. 
  696.                                                             ; This information should be obtained using GetScript. 
  697. romanSysFond                    EQU        $3FFF                ;system font id number
  698. romanAppFond                    EQU        3                    ;application font id number
  699. romanFlags                        EQU        $0007                ;roman settings
  700.                                                             ; Script Manager font equates. 
  701. smFondStart                        EQU        $4000                ;start from 16K
  702. smFondEnd                        EQU        $C000                ;past end of range at 48K
  703.                                                             ; Miscellaneous font equates. 
  704. smUprHalfCharSet                EQU        $80                    ;first char code in top half of std char set
  705.  
  706.                                                             ; Character Set Extensions 
  707. diaeresisUprY                    EQU        $D9
  708. fraction                        EQU        $DA
  709. intlCurrency                    EQU        $DB
  710. leftSingGuillemet                EQU        $DC
  711. rightSingGuillemet                EQU        $DD
  712. fiLigature                        EQU        $DE
  713. flLigature                        EQU        $DF
  714. dblDagger                        EQU        $E0
  715. centeredDot                        EQU        $E1
  716. baseSingQuote                    EQU        $E2
  717. baseDblQuote                    EQU        $E3
  718. perThousand                        EQU        $E4
  719. circumflexUprA                    EQU        $E5
  720. circumflexUprE                    EQU        $E6
  721. acuteUprA                        EQU        $E7
  722. diaeresisUprE                    EQU        $E8
  723. graveUprE                        EQU        $E9
  724. acuteUprI                        EQU        $EA
  725. circumflexUprI                    EQU        $EB
  726. diaeresisUprI                    EQU        $EC
  727. graveUprI                        EQU        $ED
  728. acuteUprO                        EQU        $EE
  729. circumflexUprO                    EQU        $EF
  730. appleLogo                        EQU        $F0
  731. graveUprO                        EQU        $F1
  732. acuteUprU                        EQU        $F2
  733. circumflexUprU                    EQU        $F3
  734. graveUprU                        EQU        $F4
  735. dotlessLwrI                        EQU        $F5
  736. circumflex                        EQU        $F6
  737. tilde                            EQU        $F7
  738. macron                            EQU        $F8
  739. breveMark                        EQU        $F9
  740. overDot                            EQU        $FA
  741. ringMark                        EQU        $FB
  742. cedilla                            EQU        $FC
  743. doubleAcute                        EQU        $FD
  744. ogonek                            EQU        $FE
  745. hachek                            EQU        $FF
  746.  
  747.                                                             ; ScriptTokenType values 
  748. tokenIntl                        EQU        4                    ;the itl resource number of the tokenizer
  749. tokenEmpty                        EQU        -1                    ;used internally as an empty flag
  750.  
  751. tokenUnknown                    EQU        0                    ;chars that do not match a defined token type
  752. tokenWhite                        EQU        1                    ;white space
  753. tokenLeftLit                    EQU        2                    ;literal begin
  754. tokenRightLit                    EQU        3                    ;literal end
  755. tokenAlpha                        EQU        4                    ;alphabetic
  756. tokenNumeric                    EQU        5                    ;numeric
  757. tokenNewLine                    EQU        6                    ;new line
  758. tokenLeftComment                EQU        7                    ;open comment
  759. tokenRightComment                EQU        8                    ;close comment
  760. tokenLiteral                    EQU        9                    ;literal
  761. tokenEscape                        EQU        10                    ;character escape (e.g. '\' in "\n", "\t")
  762. tokenAltNum                        EQU        11                    ;alternate number (e.g. $B0-B9 in Arabic,Hebrew)
  763. tokenRealNum                    EQU        12                    ;real number
  764. tokenAltReal                    EQU        13                    ;alternate real number
  765. tokenReserve1                    EQU        14                    ;reserved
  766. tokenReserve2                    EQU        15                    ;reserved
  767. tokenLeftParen                    EQU        16                    ;open parenthesis
  768. tokenRightParen                    EQU        17                    ;close parenthesis
  769. tokenLeftBracket                EQU        18                    ;open square bracket
  770. tokenRightBracket                EQU        19                    ;close square bracket
  771.  
  772. tokenLeftCurly                    EQU        20                    ;open curly bracket
  773. tokenRightCurly                    EQU        21                    ;close curly bracket
  774. tokenLeftEnclose                EQU        22                    ;open guillemet
  775. tokenRightEnclose                EQU        23                    ;close guillemet
  776. tokenPlus                        EQU        24
  777. tokenMinus                        EQU        25
  778. tokenAsterisk                    EQU        26                    ;times/multiply
  779. tokenDivide                        EQU        27
  780. tokenPlusMinus                    EQU        28                    ;plus or minus symbol
  781. tokenSlash                        EQU        29
  782. tokenBackSlash                    EQU        30
  783. tokenLess                        EQU        31                    ;less than symbol
  784. tokenGreat                        EQU        32                    ;greater than symbol
  785. tokenEqual                        EQU        33
  786. tokenLessEqual2                    EQU        34                    ;less than or equal, 2 characters (e.g. <=)
  787. tokenLessEqual1                    EQU        35                    ;less than or equal, 1 character
  788. tokenGreatEqual2                EQU        36                    ;greater than or equal, 2 characters (e.g. >=)
  789. tokenGreatEqual1                EQU        37                    ;greater than or equal, 1 character
  790. token2Equal                        EQU        38                    ;double equal (e.g. ==)
  791. tokenColonEqual                    EQU        39                    ;colon equal
  792.  
  793. tokenNotEqual                    EQU        40                    ;not equal, 1 character
  794. tokenLessGreat                    EQU        41                    ;less/greater, Pascal not equal (e.g. <>)
  795. tokenExclamEqual                EQU        42                    ;exclamation equal, C not equal (e.g. !=)
  796. tokenExclam                        EQU        43                    ;exclamation point
  797. tokenTilde                        EQU        44                    ;centered tilde
  798. tokenComma                        EQU        45
  799. tokenPeriod                        EQU        46
  800. tokenLeft2Quote                    EQU        47                    ;open double quote
  801. tokenRight2Quote                EQU        48                    ;close double quote
  802. tokenLeft1Quote                    EQU        49                    ;open single quote
  803. tokenRight1Quote                EQU        50                    ;close single quote
  804. token2Quote                        EQU        51                    ;double quote
  805. token1Quote                        EQU        52                    ;single quote
  806. tokenSemicolon                    EQU        53
  807. tokenPercent                    EQU        54
  808. tokenCaret                        EQU        55
  809. tokenUnderline                    EQU        56
  810. tokenAmpersand                    EQU        57
  811. tokenAtSign                        EQU        58
  812. tokenBar                        EQU        59                    ;vertical bar
  813.  
  814. tokenQuestion                    EQU        60
  815. tokenPi                            EQU        61                    ;lower-case pi
  816. tokenRoot                        EQU        62                    ;square root symbol
  817. tokenSigma                        EQU        63                    ;capital sigma
  818. tokenIntegral                    EQU        64                    ;integral sign
  819. tokenMicro                        EQU        65
  820. tokenCapPi                        EQU        66                    ;capital pi
  821. tokenInfinity                    EQU        67
  822. tokenColon                        EQU        68
  823. tokenHash                        EQU        69                    ;e.g. #
  824. tokenDollar                        EQU        70
  825. tokenNoBreakSpace                EQU        71                    ;non-breaking space
  826. tokenFraction                    EQU        72
  827. tokenIntlCurrency                EQU        73
  828. tokenLeftSingGuillemet            EQU        74
  829. tokenRightSingGuillemet            EQU        75
  830. tokenPerThousand                EQU        76
  831. tokenEllipsis                    EQU        77
  832. tokenCenterDot                    EQU        78
  833. tokenNil                        EQU        127
  834.  
  835. delimPad                        EQU        -2                    ; obsolete, misspelled token names kept for backward compatibility 
  836. tokenTilda                        EQU        44
  837. tokenCarat                        EQU        55
  838.  
  839.                                                             ; Table selectors for GetItlTable 
  840. smWordSelectTable                EQU        0                    ; get word select break table from 'itl2' 
  841. smWordWrapTable                    EQU        1                    ; get word wrap break table from 'itl2' 
  842. smNumberPartsTable                EQU        2                    ; get default number parts table from 'itl4' 
  843. smUnTokenTable                    EQU        3                    ; get unToken table from 'itl4' 
  844. smWhiteSpaceList                EQU        4                    ; get white space list from 'itl4' 
  845. iuWordSelectTable                EQU        0                    ; <obsolete>  get word select break table from 'itl2' 
  846. iuWordWrapTable                    EQU        1                    ; <obsolete>  get word wrap break table from 'itl2' 
  847. iuNumberPartsTable                EQU        2                    ; <obsolete>  get default number parts table from 'itl4' 
  848. iuUnTokenTable                    EQU        3                    ; <obsolete>  get unToken table from 'itl4' 
  849. iuWhiteSpaceList                EQU        4                    ; <obsolete>  get white space list from 'itl4' 
  850. ;  end of stuff moved from Packages.h 
  851.  
  852. tokenOK                            EQU        0                    ; TokenResults 
  853. tokenOverflow                    EQU        1                    ; TokenResults 
  854. stringOverflow                    EQU        2                    ; TokenResults 
  855. badDelim                        EQU        3                    ; TokenResults 
  856. badEnding                        EQU        4                    ; TokenResults 
  857. crash                            EQU        5                    ; TokenResults 
  858. ; typedef SInt8                         TokenResults
  859.  
  860. CharByteTable            RECORD 0
  861. elements                 ds.b    256
  862. sizeof                     EQU *                    ; size:   $100 (256)
  863.                         ENDR
  864.  
  865.  
  866. ;  "TokenType" was renamed to "ScriptTokenType" because of a name collision in QuickTime 3.0 on other OS's
  867. ; typedef short                         ScriptTokenType
  868.  
  869.     IF TARGET_OS_MAC THEN
  870. ; typedef ScriptTokenType                 TokenType
  871.  
  872.     ENDIF    ; TARGET_OS_MAC
  873. DelimType                RECORD 0
  874. elements                 ds.w    2
  875. sizeof                     EQU *                    ; size:   $4 (4)
  876.                         ENDR
  877.  
  878.  
  879. CommentType                RECORD 0
  880. elements                 ds.w    4
  881. sizeof                     EQU *                    ; size:   $8 (8)
  882.                         ENDR
  883.  
  884.  
  885. TokenRec                RECORD 0
  886. theToken                 ds.w    1                ; offset: $0 (0)
  887. position                 ds.l    1                ; offset: $2 (2)        ; pointer into original source
  888. length                     ds.l    1                ; offset: $6 (6)        ; length of text in original source
  889. stringPosition             ds.l    1                ; offset: $A (10)        ; Pascal/C string copy of identifier
  890. sizeof                     EQU *                    ; size:   $E (14)
  891.                         ENDR
  892. ; typedef struct TokenRec *                TokenRecPtr
  893.  
  894. TokenBlock                RECORD 0
  895. source                     ds.l    1                ; offset: $0 (0)        ; pointer to stream of characters
  896. sourceLength             ds.l    1                ; offset: $4 (4)        ; length of source stream
  897. tokenList                 ds.l    1                ; offset: $8 (8)        ; pointer to array of tokens
  898. tokenLength                 ds.l    1                ; offset: $C (12)        ; maximum length of TokenList
  899. tokenCount                 ds.l    1                ; offset: $10 (16)        ; number tokens generated by tokenizer
  900. stringList                 ds.l    1                ; offset: $14 (20)        ; pointer to stream of identifiers
  901. stringLength             ds.l    1                ; offset: $18 (24)        ; length of string list
  902. stringCount                 ds.l    1                ; offset: $1C (28)        ; number of bytes currently used
  903. doString                 ds.b    1                ; offset: $20 (32)        ; make strings & put into StringList
  904. doAppend                 ds.b    1                ; offset: $21 (33)        ; append to TokenList rather than replace
  905. doAlphanumeric             ds.b    1                ; offset: $22 (34)        ; identifiers may include numeric
  906. doNest                     ds.b    1                ; offset: $23 (35)        ; do comments nest?
  907. leftDelims                 ds.w    2                ; offset: $24 (36)
  908. rightDelims                 ds.w    2                ; offset: $28 (40)
  909. leftComment                 ds.w    4                ; offset: $2C (44)
  910. rightComment             ds.w    4                ; offset: $34 (52)
  911. escapeCode                 ds.w    1                ; offset: $3C (60)        ; escape symbol code
  912. decimalCode                 ds.w    1                ; offset: $3E (62)
  913. itlResource                 ds.l    1                ; offset: $40 (64)        ; handle to itl4 resource of current script
  914. reserved                 ds.l    8                ; offset: $44 (68)        ; must be zero!
  915. sizeof                     EQU *                    ; size:   $64 (100)
  916.                         ENDR
  917. ; typedef struct TokenBlock *            TokenBlockPtr
  918.  
  919. ;
  920. ; pascal short GetSysDirection(void)
  921. ;
  922.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  923.         Macro
  924.         _GetSysDirection      &dest=(sp)
  925.             move.w            $0BAC,&dest
  926.         EndM
  927.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  928.         IMPORT_CFM_FUNCTION GetSysDirection
  929.     ENDIF
  930.  
  931. ;
  932. ; pascal void SetSysDirection(short value)
  933. ;
  934.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  935.         Macro
  936.         _SetSysDirection      &src=(sp)+
  937.             move.w            &src,$0BAC
  938.         EndM
  939.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  940.         IMPORT_CFM_FUNCTION SetSysDirection
  941.     ENDIF
  942.  
  943. ;
  944. ; pascal short FontScript(void )
  945. ;
  946.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  947.         Macro
  948.         _FontScript
  949.             move.l              #$82000000,-(sp)
  950.             dc.w                $A8B5
  951.         EndM
  952.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  953.         IMPORT_CFM_FUNCTION FontScript
  954.     ENDIF
  955.  
  956. ;
  957. ; pascal short IntlScript(void )
  958. ;
  959.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  960.         Macro
  961.         _IntlScript
  962.             move.l              #$82000002,-(sp)
  963.             dc.w                $A8B5
  964.         EndM
  965.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  966.         IMPORT_CFM_FUNCTION IntlScript
  967.     ENDIF
  968.  
  969. ;
  970. ; pascal void KeyScript(short code)
  971. ;
  972.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  973.         Macro
  974.         _KeyScript
  975.             move.l              #$80020004,-(sp)
  976.             dc.w                $A8B5
  977.         EndM
  978.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  979.         IMPORT_CFM_FUNCTION KeyScript
  980.     ENDIF
  981.  
  982. ;
  983. ; pascal Boolean IsCmdChar(const EventRecord *event, short test)
  984. ;
  985.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  986.         Macro
  987.         _IsCmdChar
  988.             move.l              #$8206FFD0,-(sp)
  989.             dc.w                $A8B5
  990.         EndM
  991.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  992.         IMPORT_CFM_FUNCTION IsCmdChar
  993.     ENDIF
  994.  
  995. ;
  996. ; pascal short FontToScript(short fontNumber)
  997. ;
  998.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  999.         Macro
  1000.         _FontToScript
  1001.             move.l              #$82020006,-(sp)
  1002.             dc.w                $A8B5
  1003.         EndM
  1004.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1005.         IMPORT_CFM_FUNCTION FontToScript
  1006.     ENDIF
  1007.  
  1008. ;
  1009. ; pascal long GetScriptManagerVariable(short selector)
  1010. ;
  1011.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1012.         Macro
  1013.         _GetScriptManagerVariable
  1014.             move.l              #$84020008,-(sp)
  1015.             dc.w                $A8B5
  1016.         EndM
  1017.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1018.         IMPORT_CFM_FUNCTION GetScriptManagerVariable
  1019.     ENDIF
  1020.  
  1021. ;
  1022. ; pascal OSErr SetScriptManagerVariable(short selector, long param)
  1023. ;
  1024.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1025.         Macro
  1026.         _SetScriptManagerVariable
  1027.             move.l              #$8206000A,-(sp)
  1028.             dc.w                $A8B5
  1029.         EndM
  1030.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1031.         IMPORT_CFM_FUNCTION SetScriptManagerVariable
  1032.     ENDIF
  1033.  
  1034. ;
  1035. ; pascal long GetScriptVariable(short script, short selector)
  1036. ;
  1037.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1038.         Macro
  1039.         _GetScriptVariable
  1040.             move.l              #$8404000C,-(sp)
  1041.             dc.w                $A8B5
  1042.         EndM
  1043.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1044.         IMPORT_CFM_FUNCTION GetScriptVariable
  1045.     ENDIF
  1046.  
  1047. ;
  1048. ; pascal OSErr SetScriptVariable(short script, short selector, long param)
  1049. ;
  1050.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1051.         Macro
  1052.         _SetScriptVariable
  1053.             move.l              #$8208000E,-(sp)
  1054.             dc.w                $A8B5
  1055.         EndM
  1056.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1057.         IMPORT_CFM_FUNCTION SetScriptVariable
  1058.     ENDIF
  1059.  
  1060. ;
  1061. ; pascal short CharacterByteType(Ptr textBuf, short textOffset, ScriptCode script)
  1062. ;
  1063.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1064.         Macro
  1065.         _CharacterByteType
  1066.             move.l              #$C2060010,-(sp)
  1067.             dc.w                $A8B5
  1068.         EndM
  1069.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1070.         IMPORT_CFM_FUNCTION CharacterByteType
  1071.     ENDIF
  1072.  
  1073. ;
  1074. ; pascal short CharacterType(Ptr textBuf, short textOffset, ScriptCode script)
  1075. ;
  1076.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1077.         Macro
  1078.         _CharacterType
  1079.             move.l              #$C2060012,-(sp)
  1080.             dc.w                $A8B5
  1081.         EndM
  1082.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1083.         IMPORT_CFM_FUNCTION CharacterType
  1084.     ENDIF
  1085.  
  1086. ;
  1087. ; pascal OSErr TransliterateText(Handle srcHandle, Handle dstHandle, short target, long srcMask, ScriptCode script)
  1088. ;
  1089.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1090.         Macro
  1091.         _TransliterateText
  1092.             move.l              #$C20E0018,-(sp)
  1093.             dc.w                $A8B5
  1094.         EndM
  1095.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1096.         IMPORT_CFM_FUNCTION TransliterateText
  1097.     ENDIF
  1098.  
  1099. ;
  1100. ; pascal Boolean FillParseTable(CharByteTable table, ScriptCode script)
  1101. ;
  1102.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1103.         Macro
  1104.         _FillParseTable
  1105.             move.l              #$C2040022,-(sp)
  1106.             dc.w                $A8B5
  1107.         EndM
  1108.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1109.         IMPORT_CFM_FUNCTION FillParseTable
  1110.     ENDIF
  1111.  
  1112. ;
  1113. ; pascal Handle GetIntlResource(short theID)
  1114. ;
  1115.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1116.         Macro
  1117.         _GetIntlResource
  1118.             move.w              #$0006,-(sp)
  1119.             dc.w                $A9ED
  1120.         EndM
  1121.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1122.         IMPORT_CFM_FUNCTION GetIntlResource
  1123.     ENDIF
  1124.  
  1125. ;
  1126. ; pascal void ClearIntlResourceCache(void )
  1127. ;
  1128.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1129.         Macro
  1130.         _ClearIntlResourceCache
  1131.             move.w              #$0018,-(sp)
  1132.             dc.w                $A9ED
  1133.         EndM
  1134.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1135.         IMPORT_CFM_FUNCTION ClearIntlResourceCache
  1136.     ENDIF
  1137.  
  1138. ;
  1139. ; pascal void GetIntlResourceTable(ScriptCode script, short tableCode, Handle *itlHandle, long *offset, long *length)
  1140. ;
  1141.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1142.         Macro
  1143.         _GetIntlResourceTable
  1144.             move.w              #$0024,-(sp)
  1145.             dc.w                $A9ED
  1146.         EndM
  1147.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1148.         IMPORT_CFM_FUNCTION GetIntlResourceTable
  1149.     ENDIF
  1150.  
  1151. ;
  1152. ; pascal UniversalProcPtr GetScriptUtilityAddress(short selector, Boolean Before, ScriptCode script)
  1153. ;
  1154.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1155.         Macro
  1156.         _GetScriptUtilityAddress
  1157.             move.l              #$C4040038,-(sp)
  1158.             dc.w                $A8B5
  1159.         EndM
  1160.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1161.         IMPORT_CFM_FUNCTION GetScriptUtilityAddress
  1162.     ENDIF
  1163.  
  1164. ;
  1165. ; pascal void SetScriptUtilityAddress(short selector, Boolean Before, UniversalProcPtr routineAddr, ScriptCode script)
  1166. ;
  1167.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1168.         Macro
  1169.         _SetScriptUtilityAddress
  1170.             move.l              #$C008003A,-(sp)
  1171.             dc.w                $A8B5
  1172.         EndM
  1173.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1174.         IMPORT_CFM_FUNCTION SetScriptUtilityAddress
  1175.     ENDIF
  1176.  
  1177. ;
  1178. ; pascal UniversalProcPtr GetScriptQDPatchAddress(short trapNum, Boolean Before, Boolean forPrinting, ScriptCode script)
  1179. ;
  1180.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1181.         Macro
  1182.         _GetScriptQDPatchAddress
  1183.             move.l              #$C406003C,-(sp)
  1184.             dc.w                $A8B5
  1185.         EndM
  1186.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1187.         IMPORT_CFM_FUNCTION GetScriptQDPatchAddress
  1188.     ENDIF
  1189.  
  1190. ;
  1191. ; pascal void SetScriptQDPatchAddress(short trapNum, Boolean Before, Boolean forPrinting, UniversalProcPtr routineAddr, ScriptCode script)
  1192. ;
  1193.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1194.         Macro
  1195.         _SetScriptQDPatchAddress
  1196.             move.l              #$C00A003E,-(sp)
  1197.             dc.w                $A8B5
  1198.         EndM
  1199.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1200.         IMPORT_CFM_FUNCTION SetScriptQDPatchAddress
  1201.     ENDIF
  1202.  
  1203. ;
  1204. ; pascal void SetIntlResource(short refNum, short theID, Handle intlHandle)
  1205. ;
  1206.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1207.         Macro
  1208.         _SetIntlResource
  1209.             move.w              #$0008,-(sp)
  1210.             dc.w                $A9ED
  1211.         EndM
  1212.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1213.         IMPORT_CFM_FUNCTION SetIntlResource
  1214.     ENDIF
  1215.  
  1216. ;
  1217. ; pascal short CharByte(Ptr textBuf, short textOffset)
  1218. ;
  1219.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1220.         Macro
  1221.         _CharByte
  1222.             move.l              #$82060010,-(sp)
  1223.             dc.w                $A8B5
  1224.         EndM
  1225.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1226.         IMPORT_CFM_FUNCTION CharByte
  1227.     ENDIF
  1228.  
  1229. ;
  1230. ; pascal short CharType(Ptr textBuf, short textOffset)
  1231. ;
  1232.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1233.         Macro
  1234.         _CharType
  1235.             move.l              #$82060012,-(sp)
  1236.             dc.w                $A8B5
  1237.         EndM
  1238.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1239.         IMPORT_CFM_FUNCTION CharType
  1240.     ENDIF
  1241.  
  1242. ;
  1243. ; pascal OSErr Transliterate(Handle srcHandle, Handle dstHandle, short target, long srcMask)
  1244. ;
  1245.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1246.         Macro
  1247.         _Transliterate
  1248.             move.l              #$820E0018,-(sp)
  1249.             dc.w                $A8B5
  1250.         EndM
  1251.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1252.         IMPORT_CFM_FUNCTION Transliterate
  1253.     ENDIF
  1254.  
  1255. ;
  1256. ; pascal Boolean ParseTable(CharByteTable table)
  1257. ;
  1258.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1259.         Macro
  1260.         _ParseTable
  1261.             move.l              #$82040022,-(sp)
  1262.             dc.w                $A8B5
  1263.         EndM
  1264.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1265.         IMPORT_CFM_FUNCTION ParseTable
  1266.     ENDIF
  1267.  
  1268. ;
  1269. ; pascal TokenResults IntlTokenize(TokenBlockPtr tokenParam)
  1270. ;
  1271.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1272.         Macro
  1273.         _IntlTokenize
  1274.             move.l              #$8204FFFA,-(sp)
  1275.             dc.w                $A8B5
  1276.         EndM
  1277.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1278.         IMPORT_CFM_FUNCTION IntlTokenize
  1279.     ENDIF
  1280.  
  1281.     IF OLDROUTINENAMES THEN
  1282.     ENDIF    ; OLDROUTINENAMES
  1283.  
  1284.  
  1285.     ENDIF ; __SCRIPT__ 
  1286.  
  1287.